﻿using DAO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BUS
{
    public class ThamSoBUS
    {
        public ThamSoDAO _ThamSoDAO = new ThamSoDAO();
        public string TuoiToiThieu;
        public string TuoiToiDa;
        public string ThoiHanThe;
        public string KCNamXB;
        public string SoSachMuonToiDa;
        public string SoNgayMuonToiDa;
        public string SoTienPhat;
        //luu thời gian để update nợ
        public string TG = "TG";
        
        public ThamSoBUS()
        {
            TuoiToiThieu = _ThamSoDAO.TuoiToiThieu;
            TuoiToiDa = _ThamSoDAO.TuoiToiDa;
            ThoiHanThe = _ThamSoDAO.ThoiHanThe;
            KCNamXB = _ThamSoDAO.KCNamXB;
            SoSachMuonToiDa = _ThamSoDAO.SoSachMuonToiDa;
            SoNgayMuonToiDa = _ThamSoDAO.SoNgayMuonToiDa;
            SoTienPhat = _ThamSoDAO.SoTienPhat;
        }
        public bool InsertThamso(string TenThamso, int giaTri)
        {
            return _ThamSoDAO.InsertThamSo(TenThamso, giaTri);
        }
        public bool UpdateThamSo(string TenThamSo, int GiaTri)
        {
            return _ThamSoDAO.UpdateThamSo(TenThamSo, GiaTri);
        }
        public bool DeleteThamSo(String TenThamSo)
        {
            return _ThamSoDAO.DeleteThamSo(TenThamSo);
        }
        public int GetGiaTriThamSo(string TenThamSo)
        {
            return _ThamSoDAO.GetGiaTriThamSo(TenThamSo);
        }
    }
}
